<%@page import="mysql.MysqlConnect"%>
<%@page import="java.sql.Connection"%>
<%@ page import="mysql.Log"%>
<%@ page language="java" contentType="text/html; charset=EUC-KR"
	pageEncoding="EUC-KR"%>

<%
	Connection con = MysqlConnect.getConnection();
	boolean loginCheck = Log.login(con, request.getParameter("id"),
			request.getParameter("pw"), session);

	if (loginCheck) {
		response.sendRedirect("loginSuccess.jsp");
	} else {
		response.sendRedirect("loginFail.jsp");
	}
%>